
import { IRouteItem } from '../lib/types'
import React, { lazy } from 'react'
import { Route, Redirect } from 'react-router'

const routes: IRouteItem[] = [
  {
    path: '/',
    customId: 'home_page',
    component: lazy(() => import('../pages/Home/index')),
  },
  // 执行案确认列表
  {
    path: '/CaseConfirmation/Record',
    customId: 'thirdparty_execute_case_ok',
    component: lazy(() => import('../pages/CaseConfirmation/Record')),
  },

  //公告管理列表
  {
    path: '/AnnouncementManagement/List',
    customId: 'customer_dealer_notice_manager',
    component: lazy(() => import('../pages/AnnouncementManagement/List')),
  },
  //公告管理新增
  {
    path: '/AnnouncementManagement/List/AddNew',
    customId: 'customer_dealer_notice_manager_insert',
    component: lazy(() => import('../pages/AnnouncementManagement/List/addNew')),
  },
  //公告管理编辑
  {
    path: '/AnnouncementManagement/List/Edit/:id',
    customId: 'customer_dealer_notice_manager_update',
    component: lazy(() => import('../pages/AnnouncementManagement/List/edit')),
  },
  // 公告分类列表
  {
    path: '/AnnouncementManagement/classification',
    customId: 'customer_dealer_notice_class_manager',
    component: lazy(() => import('../pages/AnnouncementManagement/Classification')),
  },
  // 投诉建议分类列表
  {
    path: '/Suggestions/Classification',
    customId: 'customer_dealer_complaint_type_manager',
    component: lazy(() => import('../pages/Suggestions/Classification')),
  },
  // 投诉建议处理列表
  {
    path: '/Suggestions/DealWith',
    customId: 'customer_dealer_complaint_manager',
    component: lazy(() => import('../pages/Suggestions/DealWith')),
  },
  // 投诉建议详情——查看
  {
    path: '/Suggestions/DealWith/Detail/:id',
    customId: 'customer_dealer_complaint_manager_find',
    component: lazy(() => import('../pages/Suggestions/DealWithDetail')),
  },
  // 处理投诉建议操作页面详情——处理
  {
    path: '/Suggestions/DealWith/Deal/:id',
    customId: 'customer_dealer_complaint_manager_handle',
    component: lazy(() => import('../pages/Suggestions/DealWithDeal')),
  },

  /* 用户管理 */
  // 经销商
  {
    path: '/user/dealeraccount/list',
    customId: 'user_dealer_account_manager',
    component: lazy(() => import('../pages/UserManagement/DealerAccount/list')),
  },
  // 内部员工
  {
    path: '/user/internalstaff/list',
    customId: 'user_lzlj_employee_manager',
    component: lazy(() => import('../pages/UserManagement/InternalStaff/list')),
  },
  // 经销商员工
  {
    path: '/user/dealerstaff/list',
    customId: 'user_dealer_employee_manager',
    component: lazy(() => import('../pages/UserManagement/DealerStaff/list')),
  },
  // 内部员工授权管理区域管理
  {
    path: '/user/dealerstaff/internal-staff-area',
    customId: 'user_dealerstaff_internal_staff_area',
    component: lazy(() => import('../pages/UserManagement/InternalStaffArea')),
  },
  /* 角色权限管理 */
  // 角色权限管理列表
  {
    path: '/user/role/list',
    customId: 'user_auth_lzlj',
    component: lazy(() => import('../pages/RolePermissionsManage/RolePermissions/list')),
  },
  // 经销商角色权限管理列表
  {
    path: '/user/role/dealermanagelist',
    customId: 'user_auth_dealer',
    component: lazy(() => import('../pages/RolePermissionsManage/DealerRolePermissions/list')),
  },

  /* 系统设置 */
  // 费用资金权限设置
  {
    path: '/systemsettings/capitalcost/list',
    customId: 'user_system_settings_permissions',
    component: lazy(() => import('../pages/SystemSettings/CapitalCost/list')),
  },
  // 审批流程管理列表
  {
    path: '/systemsettings/approvalProcess/list',
    customId: 'workflow_manage',
    component: lazy(() => import('../pages/SystemSettings/ApprovalProcessManage/List')),
  },
  // 流程管理页面
  {
    path: '/systemsettings/approvalProcess/processmanage',
    customId: 'processmanage_system_settings',
    component: lazy(() => import('../pages/SystemSettings/ApprovalProcessManage/ProcessManagePage')),
  },
  // 外部系统API管理
  {
    path: '/systemsettings/externalSystemApi/list',
    customId: 'user_system_settings_outer_system',
    component: lazy(() => import('../pages/SystemSettings/ExternalSystemAPIManage/List')),
  },
  // 通用配置
  {
    path: '/systemsettings/generalconfig',
    customId: 'user_system_settings_common_config',
    component: lazy(() => import('../pages/SystemSettings/GeneralConfig')),
  },
  {
    path: '/systemsettings/StatementOfAccountConfig',
    customId: 'statement_of_account_setting',
    component: lazy(() => import('../pages/SystemSettings/StatementOfAccountConfig')),
  },
  /*对账函 */
  {
    path: '/statementOfaccount/sendStatementOfAccount',
    customId: 'send_statement_of_account',
    component: lazy(() => import('../pages/StatementOfAccount/SendStatementOfAccount')),
  },
  /**监控预警 */
  //监控预警统计
  {
    path: '/monitoring_and_warning/sendStatementOfAccount',
    customId: 'warning_statistics',
    component: lazy(() => import('../pages/MonitoringAndWarning/WarningStatistics')),
  },
  //接收记录日志
  {
    path: '/monitoring_and_warning/receive_record_log',
    customId: 'receive_record_log',
    component: lazy(() => import('../pages/MonitoringAndWarning/ReceiveRecordLog')),
  },
  //推送记录日志
  {
    path: '/monitoring_and_warning/push_record_log',
    customId: 'push_record_log',
    component: lazy(() => import('../pages/MonitoringAndWarning/PushRecordLog')),
  },
   /*职位类型配置 */
   {
    path: '/systemsettings/positionTypeConfig',
    customId: 'position_type_config',
    component: lazy(() => import('../pages/SystemSettings/PositionTypeConfig')),
  },
  {
    path: '/statementOfaccount/statementOfAccountRecord',
    customId: 'statement_of_account_record',
    component: lazy(() => import('../pages/StatementOfAccount/StatementOfAccountRecord')),
  },
  /* 我的待办 */
  {
    path: '/todo/list',
    customId: 'my_backlog_page',
    component: lazy(() => import('../pages/TodoList/List')),
  },

  // 入驻审核详情
  {
    path: '/todo/settledreview/detail/:id',
    customId: 'register_backlog',
    component: lazy(() => import('../pages/TodoList/SettledReview/Detail')),
  },

  // 库存盘点详情
  {
    path: '/todo/stockcheck/detail/:id',
    customId: 'my_backlog_quota_workflowdetail',
    component: lazy(() => import('../pages/TodoList/StockCheck/Detail')),
  },

  // 月度配额申请详情
  {
    path: '/todo/quotaapplication/detail/:id',
    customId: 'my_backlog_quota_mgmtworkflowdetail',
    component: lazy(() => import('../pages/TodoList/MonthlyQuotaApplication/Detail')),
  },

  // 月度配额下达详情
  {
    path: '/todo/quotarelease/detail/:id',
    customId: 'my_backlog_quota_workfloworgdetail',
    component: lazy(() => import('../pages/TodoList/MonthlyQuotaRelease/Detail')),
  },

  // 配额调整详情
  {
    path: '/todo/quotaadjustment/detail/:id',
    customId: 'my_backlog_quota_quotamodifyworkflowdetail',
    component: lazy(() => import('../pages/TodoList/QuotaAdjustment/Detail')),
  },
  // 配额导入详情
  {
    path: '/todo/quota/import/detail/:id',
    customId: 'my_backlog_quota_quotamodifyworkflowdetail',
    component: lazy(() => import('../pages/TodoList/QuotaImport/Detail')),
  },
  // 配额转移详情
  {
    path: '/todo/quotatransfer/detail/:id',
    customId: 'my_backlog_quota_quotachangworkflowdetail',
    component: lazy(() => import('../pages/TodoList/QuotaTransfer/Detail')),
  },

  /* 客户管理 */
  //客户申请
  {
    path: '/customer/CustomerApplication/list',
    customId: 'customer_application',
    component: lazy(() => import('../pages/CustomerManage/CustomerApplication/List')),
  },
  //奖品兑付
  {
    path: '/customer/PrizeCashing/Prize',
    customId: 'dealer_prize',
    component: lazy(() => import('../pages/CustomerManage/PrizeCashing/Prize')),
  },
  //经营品项
  {
    path: '/customer/operatingItems/list',
    customId: 'user_customer_operating_items',
    component: lazy(() => import('../pages/CustomerManage/OperatingItems/List')),
  },
  // 客户列表
  {
    path: '/customer/list',
    customId: 'user_customer_manager',
    component: lazy(() => import('../pages/CustomerManage/Customer/List/index2')),
  },
  //客户等级权益
  {
    path: '/customer/RightsAndInterests/list',
    customId: 'user_customer_level_RightsAndInterests',
    component: lazy(() => import('../pages/CustomerManage/RightsAndInterests/List')),
  },
  //客户利润统计
  {
    path: '/customer/ProfitStatistics/list',
    customId: 'user_customer_Profit_statistics',
    component: lazy(() => import('../pages/CustomerManage/ProfitStatistics/List')),
  },
  //客户新增
  {
    path: '/customer/list/add',
    customId: 'user_customers_agent_add',
    component: lazy(() => import('../pages/CustomerManage/Customer/List/add')),
  },
  //客户管理--维护品牌信息
  {
    path: '/customer/list/edit/:agentName/:agentCode',
    customId: 'user_customers_agent_brand',
    component: lazy(() => import('../pages/CustomerManage/Customer/List/edit')),
  },

  // 客户详情
  {
    path: '/customer/detail/:id/:type',
    customId: 'user_customer_manager_find_kids',
    component: lazy(() => import('../pages/CustomerManage/Customer/Detail')),
  },

  // 入驻资质列表
  {
    path: '/customer/settled',
    customId: 'user_customer_settled',
    component: lazy(() => import('../pages/CustomerManage/SettledReview/List')),
  },

  // 入驻资质详情
  {
    path: '/customer/settled/:id',
    customId: 'user_customer_settled_detail',
    component: lazy(() => import('../pages/CustomerManage/SettledReview/Detail')),
  },

  //销售区域及产品
  {
    path: '/customer/areaproduts',
    customId: 'user_domainandproduct_manager',
    component: lazy(() => import('../pages/CustomerManage/AreaAndProducts')),
  },

  //销售区域及产品新增
  {
    path: '/customer/areaproduts/add/:agentId/:agentName',
    customId: 'user_domainandproduct_manager_insert',
    component: lazy(() => import('../pages/CustomerManage/AreaAndProducts/add')),
  },

  //销售区域及产品详情
  {
    path: '/customer/areaproduts/details/:agentId/:agentName',
    customId: 'user_domainandproduct_manager_list',
    component: lazy(() => import('../pages/CustomerManage/AreaAndProducts/details')),
  },

  /* 系统主数据 */
  // 机构管理
  {
    path: '/organization/list',
    customId: 'user_master_data_organization',
    component: lazy(() => import('../pages/OrganizationManage/List')),
  },
  // 产品主数据列表
  {
    path: '/masterdata/products',
    customId: 'stock_master_data_product',
    component: lazy(() => import('../pages/SystemMasterDataManage/ProductMasterData')),
  },
  // 物料分类管理主数据
  {
    path: '/masterdata/materialmanagement',
    customId: 'quota_employee_manager_productGroup',
    component: lazy(() => import('../pages/SystemMasterDataManage/MaterialManagement/List')),
  },
  // 物料分类管理主数据3级页面 关联物料页面
  {
    path: '/masterdata/materialmanagement/relatedmaterial/:id',
    customId: 'quota_employee_manager_queryMaterialByProductGroupId',
    component: lazy(() => import('../pages/SystemMasterDataManage/MaterialManagement/RelatedMaterial')),
  },

  /* 开发配置菜单 */
  {
    path: '/menus',
    customId: 'user_system_menu_manage',
    component: lazy(() => import('../pages/MenusManage/List')),
  },

  /* 开发管理excel模板 */
  {
    path: '/tplmanage',
    customId: 'user_system_tpl_manage',
    component: lazy(() => import('../pages/ExcelTplManage')),
  },

  /* 配额管理 */

  // 配额调整
  {
    path: '/quota/adjust/list',
    customId: 'quota_adjust',
    component: lazy(() => import('../pages/QuotaManage/QuotaAdjust/List')),
  },

  // 配额下达
  {
    path: '/quota/monthlyquota',
    customId: 'quota_employee_manager_getQuotaTransmit',
    component: lazy(() => import('../pages/QuotaManage/MonthlyQuotaAllocation/List')),
  },
  // 盘点客户数量统计报表  没问题
  {
    path: '/report/stockcustomercountreport',
    customId: 'api_v1_quota_mgmt_report_inventoryCustomerNumber',
    component: lazy(() => import('../pages/QuotaManage/Report/StockCustomerCountReport')),
  },
  // 已盘点客户列表   10-19  暂无问题
  {
    path: '/report/stockcustomercountreport/checkedcustomerlist/:belongAreaCode',
    customId: 'checked_customer_list',
    component: lazy(() => import('../pages/QuotaManage/Report/StockCustomerCountReport/checkedCustomerList')),
  },
  // 已盘点客户查看详情  10-19没问题
  {
    path: '/report/stockcustomercountreport/checkedcustomerlist/detail/:id',
    customId: 'checked_customer_list_checked_detail_list',
    component: lazy(
      () => import('../pages/QuotaManage/Report/StockCustomerCountReport/checkedCustomerList/checkedDetailList')
    ),
  },
  // 未盘点客户列表   -> 无数据
  {
    path: '/report/stockcustomercountreport/notcheckedcustomerlist/:brandCode',
    customId: 'not_checked_customer_list',
    component: lazy(() => import('../pages/QuotaManage/Report/StockCustomerCountReport/notCheckedCustomerList')),
  },
  // 库存明细报表 --->  10-19没问题
  {
    path: '/report/stockdetailreport',
    customId: 'api_v1_quota_mgmt_report_stock',
    component: lazy(() => import('../pages/QuotaManage/Report/StockDetailReport')),
  },
  //库存监控报表
  {
    path: '/report/InventoryMonitoringReport/list',
    customId: 'report_InventoryMonitoringReport',
    component: lazy(() => import('../pages/QuotaManage/Report/InventoryMonitoringReport')),
  },
  //经销商配额监控报表
  {
    path: '/report/QuotaMonitoringReport/list',
    customId: 'QuotaMonitoringReport',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaMonitoringReport')),
  },
  //库存动销分析报表
  {
    path: '/report/InventoryAnalysisReport/list',
    customId: 'InventoryAnalysisReport',
    component: lazy(() => import('../pages/QuotaManage/Report/InventoryAnalysisReport')),
  },
  //扫码率报表
  {
    path: '/report/ScanRateReport/list',
    customId: 'scan_rate_report',
    component: lazy(() => import('../pages/QuotaManage/Report/ScanRateReport')),
  },
  //库存动销实时报表
  {
    path: '/report/InventoryDynamicReport/list',
    customId: 'InventoryDynamicReport',
    component: lazy(() => import('../pages/QuotaManage/Report/InventoryDynamicReport')),
  },
  // 配额统计报表（客户维度） -> 10-26   暂时没问题
  {
    path: '/report/quotareport/customerdimension',
    customId: 'api_v1_quota_mgmt_report_statisticsCustomer',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaReport/CustomerDimension')),
  },
  // 配额统计报表（客户维度累计查询）-> 10-26   暂时没问题
  {
    path: '/report/quotareport/customerdimensiontotalsearch',
    customId: 'api_v1_quota_mgmt_report_customerDimensionQuery',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaReport/CustomerDimensionTotalSearch')),
  },
  // 配额统计报表（片区+客户维度） 10-26 暂时没问题
  {
    path: '/report/quotareport/areaandcustomer',
    customId: 'api_v1_quota_mgmt_report_materialAndCustomer',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaReport/AreaAndCustomer')),
  },
  // 配额统计报表（片区+配额物料分类维度）-> 10-26 暂时没问题
  {
    path: '/report/quotareport/areaandquota',
    customId: 'api_v1_quota_mgmt_report_areaAndQuotasMaterial',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaReport/AreaAndQuota')),
  },
  // 配额统计报表（物料分类+客户维度）->  10-26 暂时没问题
  {
    path: '/report/quotareport/matterandcustomer',
    customId: 'api_v1_quota_mgmt_report_areaAndCustomer',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaReport/MatterAndCustomer')),
  },
  // 配额申请统计报表 -> 10-22 传入配额周期无用。
  {
    path: '/report/quotaapllyreport',
    customId: 'api_v1_quota_mgmt_report_quota_request',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaApllyReport')),
  },
  // 配额申请统计报表 -> 已申请配额客户列表 -> null问题
  {
    path: '/report/quotaapllyreport/appliedcustomerlist/:belongAreaCode',
    customId: 'stock_detail_report_applied_customer_list',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaApllyReport/AppliedCustomerList')),
  },
  // 配额申请统计报表 -> 已申请配额客户列表 -> 配额申请详情列表 -> 理论配额值待计算
  {
    path: '/report/quotaapllyreport/appliedcustomerlist/quotaapplieddetaillist/:id',
    customId: 'stock_detail_report_applied_customer_list_quota_applied_detail_list',
    component: lazy(
      () => import('../pages/QuotaManage/Report/QuotaApllyReport/AppliedCustomerList/QuotaAppliedDetailList')
    ),
  },
  // 配额申请统计报表 -> 未申请配额客户列表
  {
    path: '/report/quotaapllyreport/notappliedcustomerlist/:belongAreaCode',
    customId: 'stock_detail_report_not_applied_customer_list',
    component: lazy(() => import('../pages/QuotaManage/Report/QuotaApllyReport/NotAppliedCustomerList')),
  },
  // 日志管理
  {
    path: '/dailyrecord/dailyrecordcontrol',
    customId: 'dailyrecordcontrol_log',
    component: lazy(() => import('../pages/DailyRecord/DailyRecordControl')),
  },
  // 配额下达 编辑页面--提交审批
  {
    path: '/quota/monthlyquota/editer/:times/:brandName',
    customId: 'quota_employee_manager_quotaTransmit',
    component: lazy(() => import('../pages/QuotaManage/MonthlyQuotaAllocation/Editer')),
  },
  // 导入导出记录
  {
    path: '/quota/importexport',
    customId: 'quota_employee_manager_excelHistory',
    component: lazy(() => import('../pages/QuotaManage/ImportExportRecord/List')),
  },
  // 手工盘点库存记录
  {
    path: '/quota/manualinventoryrecord',
    customId: 'quota_employee_manager_queryDealerCheckStockDetails',
    component: lazy(() => import('../pages/QuotaManage/ManualInventoryRecord/List')),
  },
  // 配额调整转移
  {
    path: '/quota/quotatransfer',
    customId: 'quota_employee_manager_quotaModifyget',
    component: lazy(() => import('../pages/QuotaManage/QuotaTransfer/List')),
  },
  // 配额调整转移--关联订单
  {
    path: '/quota/quotatransfer/detail/:id',
    customId: 'quota_employee_manager_getAssociatedOrderTooAli',
    component: lazy(() => import('../pages/QuotaManage/QuotaTransfer/TransferDetail')),
  },
  // 配额调整转移  调整配额
  {
    path: '/quota/quotatransfer/secondary/:brandCode',
    customId: 'quota_employee_manager_quotaModifyput',
    component: lazy(() => import('../pages/QuotaManage/QuotaTransfer/QuotaAdjustment/Secondary')),
  },
  // 配额下达申请单
  {
    path: '/quota/applicationform',
    customId: 'quota_employee_manager_quotaTransmitRequisition',
    component: lazy(() => import('../pages/QuotaManage/QuotaIssueApplicationForm/List')),
  },
  // 销管部配额下达查询
  {
    path: '/quota/applicationform/RequisitionAll',
    customId: 'quota_employee_manager_quotaTransmitRequisitionAll',
    component: lazy(() => import('../pages/QuotaManage/QuotaTransmit/RequisitionAll')),
  },
  // 销管部手工盘点库存记录
  {
    path: '/quota/applicationform/queryDealerCheckStockDetailsAll',
    customId: 'quota_employee_manager_queryDealerCheckStockDetailsAll',
    component: lazy(() => import('../pages/QuotaManage/QuotaTransmit/CheckStockDetailsAll')),
  },
  // 配额下达申请单明细
  {
    path: '/quota/applicationform/Detail/:businessKey/:brandCode/:brandName/:approvalStatus',
    customId: 'quota_employee_manager_getEffectIssuedQuotaDetailPage',
    component: lazy(() => import('../pages/QuotaManage/QuotaIssueApplicationForm/Detail')),
  },
  // 本月动销
  {
    path: '/quota/applicationform/Detail/monthpin/:traceCode/:brandCode/:groupId',
    customId: 'quota_issue_application_Detail_monthpin',
    component: lazy(() => import('../pages/QuotaManage/QuotaIssueApplicationForm/Detail/monthpin')),
  },
  // 调整记录
  {
    path: '/quota/adjustrecord',
    customId: 'quota_employee_manager_quotaModifyhistory',
    component: lazy(() => import('../pages/QuotaManage/AdjustTheRecord/List')),
  },

  // 客户年度总配额控制
  // 年度总配额列表
  {
    path: '/quota/customeryearquota/list',
    customId: 'quota_employee_manager_getQuotaYearLimitDetailPage',
    component: lazy(() => import('../pages/QuotaManage/CustomerYearQuotaControl/List')),
  },

  // 配额考核年度设置
  // 考核年度列表
  {
    path: '/quota/quotaassessyear/list',
    customId: 'quota_employee_manager_queryQuotaAssessSet',
    component: lazy(() => import('../pages/QuotaManage/QuotaAssessYearConfig/List')),
  },
  //库存盘点(重构)
  {
    path: '/quota/newStockcheck/list',
    customId: 'quota_checkStock',
    component: lazy(() => import('../pages/QuotaManage/StockCheck/List/index2')),
  },
  // 配额导入
  {
    path: '/quota/stockcheck/quotaImportList',
    customId: 'quota_Import',
    component: lazy(() => import('../pages/QuotaManage/QuotaImport/List')),
  },
  // 库存调货
  {
    path: '/quota/stockcheck/InventoryTransfer',
    customId: 'quota_employee_manager_InventoryTransfer',
    component: lazy(() => import('../pages/QuotaManage/InventoryTransfer/List')),
  },
  // 配额申请
  {
    path: '/quota/qoutaapplyfor/list',
    customId: 'api_v1_uota_mgmt_quotaApply_getQuotaDealer',
    component: lazy(() => import('../pages/QuotaManage/QoutaApplyFor/List')),
  },
  // 配额申请详情
  {
    path: '/quota/qoutaapplyfor/apply',
    customId: 'qouta_apply_for_apply',
    component: lazy(() => import('../pages/QuotaManage/QoutaApplyFor/Apply')),
  },
  // 动销明细
  {
    path: '/quota/qoutaapplyfor/detail',
    customId: 'qouta_apply_for_detail',
    component: lazy(() => import('../pages/QuotaManage/QoutaApplyFor/Detail')),
  },

  /**
   * 积分管理
   * */
  // 隔离管理
  // 隔离管理--列表
  {
    path: '/points/isolation/list',
    customId: 'isolation_manage',
    component: lazy(() => import('../pages/PointsManage/IsolationManage/List')),
  },
  // 返利规则配置
  // 返利规则配置--列表
  {
    path: '/points/rebaterule/list',
    customId: 'rebate_rule_config',
    component: lazy(() => import('../pages/PointsManage/RebateRuleConfig/List')),
  },
  // 积分考核周期
  // 积分考核周期--列表
  {
    path: '/points/assessmentcycle/list',
    customId: 'points_assessment_cycle_config',
    component: lazy(() => import('../pages/PointsManage/PointsAssessmentCycleConfig/List')),
  },
  // 积分兑付次数配置
  // 积分兑付次数配置--列表
  {
    path: '/points/redemptiontimes/list',
    customId: 'points_redemption_times_config',
    component: lazy(() => import('../pages/PointsManage/PointsRedemptionTimesConfig/List')),
  },
  // 积分调整
  // 积分调整--列表
  {
    path: '/points/adjustment/list',
    customId: 'points_adjustment',
    component: lazy(() => import('../pages/PointsManage/PointsAdjustment/List')),
  },

  /* 经销商业务往来模块路由 START */
  /**
   * 进货管理
   */

  //进货订单
  {
    path: '/purchase-management/list',
    customId: 'customer_dealer_thirdparty_dealer_my_orders',
    component: lazy(() => import('../pages/Purchase/list')),
  },
  //订单详情
  {
    path: '/purchase-management/details/:id',
    customId: 'customer_dealer_thirdparty_dealer_orders_detail',
    component: lazy(() => import('../pages/Purchase/details')),
  },

  /**
   * 资金管理
   */

  //我的资金
  {
    path: '/funds-management/funds-list',
    customId: 'customer_dealer_thirdparty_dealer_my_founds',
    component: lazy(() => import('../pages/Funds/funds-list')),
  },

  //我的保证金
  {
    path: '/funds-management/margin-list',
    customId: 'customer_dealer_thirdparty_dealer_my_deposit',
    component: lazy(() => import('../pages/Funds/margin-list')),
  },

  /**
   * 费用管理
   */

  //我的费用
  {
    path: '/cost-management/list',
    customId: 'customer_dealer_thirdparty_dealer_my_costs',
    component: lazy(() => import('../pages/Cost/list')),
  },
  //费用详情
  {
    path: '/cost-management/list/details/:ExpenseWayCode/:BrandCode',
    customId: 'customer_dealer_thirdparty_dealer_my_costs/details',
    component: lazy(() => import('../pages/Cost/list/details')),
  },

  /**
   * 合同管理
   */

  //我的合同
  {
    path: '/contract-management/list',
    customId: 'customer_dealer_thirdparty_dealer_my_contracts',
    component: lazy(() => import('../pages/ContractManage/list')),
  },
  //合同详情
  {
    path: '/contract-management/details/:id',
    customId: 'customer_dealer_thirdparty_dealer_contracts_detail',
    component: lazy(() => import('../pages/ContractManage/details')),
  },
  /* 经销商业务往来模块路由 END */

  {
    path: '/404',
    component: lazy(() => import('../pages/NotFound')),
  },
  {
    route: <Route key="NotFound" render={() => <Redirect to="/404" />} />,
  },
]

export { routes }
